// run: $exec < input
#include <iostream>

int x, r = 1;

int main()
{
	std::cin >> x;
	while (r * r + 1 < 2 * x) r += 2;
	std::cout << (x == 3 ? 5 : r) << '\n';
}

